home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / comm / uucp / wcnews_1_0_30.lha / man / news.man < prev    next >
Text File  |  1994-01-04  |  17KB  |  397 lines

  1.  
  2.  
  3.  
  4. NEWS(5)                                                   NEWS(5)
  5.  
  6.  
  7. ›1mNAME›22m
  8.        news  -  USENET  network  news  articles, batches, related
  9.        files
  10.  
  11. ›1mDESCRIPTION›22m
  12.        There are two formats of news articles: ›1mA›22m and ›1mB.›22m  ›1mA›22m format
  13.        is obsolete, but looks like this:
  14.  
  15.             ›1mA›4m›22marticle­ID›24m
  16.             ›4mnewsgroups›24m
  17.             ›4mpath›24m
  18.             ›4mdate›24m
  19.             ›4mtitle›24m
  20.             ›4mBody›24m ›4mof›24m ›4marticle›24m
  21.  
  22.        A  ›1mB›22m  format  ›4marticle›24m  consists of a series of headers and
  23.        then the body.  A header line is  defined  (approximately)
  24.        as  a line at the start of the article or immediately fol­
  25.        lowing a header line with a capital letter  as  the  first
  26.        character  and  a  colon  immediately  following the first
  27.        word, of alphanumerics and dashes, on the line (a special­
  28.        isation  of RFC 822 format).  Continued headers are as per
  29.        RFC 822.   Unrecognized  headers  are  ignored.   News  is
  30.        stored  in the same format transmitted, see ``Standard for
  31.        the Interchange of USENET Messages'' (RFC  1036  nee  850)
  32.        for  a  full description.  The following headers are among
  33.        those recognized:
  34.  
  35.             ›1mFrom:›22m ›4muser›1m›24m@›4m›22mhost.domain[.domain›24m ›4m...]›24m ›1m(›22m ›4mFull›24m ›4mName›1m›24m)›22m
  36.             ›1mNewsgroups:›22m ›4mnews›24m ›4mgroups›24m
  37.             ›1mMessage­ID:›22m ›1m<›4m›22mUnique›24m ›4mRFC822›24m ›4mmessage­id›1m›24m>›22m
  38.             ›1mSubject:›22m ›4mdescriptive›24m ›4mtitle›24m
  39.             ›1mDate:›22m ›4mdate›24m ›4mposted›24m
  40.             ›1mExpires:›22m ›4mexpiration›24m ›4mdate›24m
  41.             ›1mReply­To:›22m ›4maddress›24m ›4mfor›24m ›4mmail›24m ›4mreplies›24m
  42.             ›1mReferences:›22m ›4mMessage­ID›24m ›4mof›24m ›4marticle›24m ›4mthis›24m ›4mis›24m ›4ma›24m ›4mfollow­up›24m
  43.             ›4mto›24m.
  44.             ›1mControl:›22m ›4mtext›24m ›4mof›24m ›4ma›24m ›4mcontrol›24m ›4mmessage›24m
  45.  
  46.        Here is an example of an article:
  47.  
  48.             ›1mPath:›22m ›1matt!eagle!jerry›22m
  49.             ›1mFrom:›22m ›1mjerry@eagle.uucp›22m ›1m(Jerry›22m ›1mSchwarz)›22m
  50.             ›1mNewsgroups:›22m ›1mnews.announce›22m
  51.             ›1mSubject:›22m ›1mUsenet›22m ›1mEtiquette›22m ›1m­­›22m ›1mPlease›22m ›1mRead›22m
  52.             ›1mMessage­ID:›22m ›1m<642@eagle.UUCP>›22m
  53.             ›1mDate:›22m ›1mFriday,›22m ›1m19›22m ›1mNov›22m ›1m82›22m ›1m16:14:55›22m ›1mEST›22m
  54.             ›1mFollowup­To:›22m ›1mnews.misc›22m
  55.             ›1mExpires:›22m ›1mSaturday,›22m ›1m1›22m ›1mJan›22m ›1m83›22m ›1m00:00:00›22m ›1mEST›22m
  56.             ›1mOrganization:›22m ›1mBell›22m ›1mLabs,›22m ›1mMurray›22m ›1mHill›22m
  57.             ›1mThe›22m ›1mbody›22m ›1mof›22m ›1mthe›22m ›1marticle›22m ›1mcomes›22m ›1mhere,›22m ›1mafter›22m ›1man›22m ›1mempty›22m ›1mline.›22m
  58.  
  59.        A  ›4mnews›24m ›4mbatch›24m consists of zero or more articles, each pre­
  60.        ceded by a line of the form
  61.  
  62.  
  63.  
  64.                            12 Sept 1990                         1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. NEWS(5)                                                   NEWS(5)
  71.  
  72.  
  73.             ›1m#!›22m ›1mrnews›22m ›4mbyte­count›24m
  74.  
  75.        where ›4mbyte­count›24m is the number of bytes in  the  following
  76.        article,  where  each newline is counted as a single byte,
  77.        even if it is stored as a CR­LF or some other  representa­
  78.        tion.   Spaces  are  significant: one before and one after
  79.        ›1mrnews›22m.  News batches are usually transmitted ›4mcompress›24med.
  80.  
  81.        Various peculiar optional encapsulations of  news  batches
  82.        exist  which  consist  of doing something to the (probably
  83.        compressed) batch, then prepending a ›1m#!›22m ›4mgoo›24m  line  to  the
  84.        output,  where  ›4mgoo›24m  reflects  the  form of encapsulation;
  85.        known values of ›4mgoo›24m include ›1mcunbatch›22m (the null  encapsula­
  86.        tion),  and  ›1mc7unbatch›22m  (encode the batch using only seven
  87.        bits per character).
  88.  
  89.        The ›4msys›24m file line  has  four  fields,  each  separated  by
  90.        colons:
  91.  
  92.        ›4msystem­name›1m›24m/›4m›22mexclusion1›1m›24m,›4m›22mexclusion2...›1m›24m:›4m›22msubscription­›24m
  93.        ›4mlist›1m›24m/›4m›22mdistribution­list›1m›24m:›4m›22mflags›1m›24m:›4m›22mtransmission›24m ›4mcommand›24m
  94.  
  95.        A ›1m#›22m as the first character in a line  denotes  a  comment.
  96.        Empty  lines are ignored.  A logical line may be continued
  97.        to the next physical line by putting a ›1m\›22m at the end of the
  98.        current  physical  line.  Spaces are permitted in ›4msys›24m only
  99.        in comments, ›4mtransmission›24m ›4mcommand›24m when it really is a com­
  100.        mand and not a filename, and, for B news compatibility, at
  101.        the start of a continuation line (after a  ›1m\›22m  and  a  new­
  102.        line).
  103.  
  104.        Of  the  ›4msys›24m fields, only the ›4msystem­name›24m need be present.
  105.        If a field and all the fields after it  are  omitted,  the
  106.        colon  immediately  before  that  field and all the colons
  107.        after it may  be  omitted  too.   The  optional  subfields
  108.        (›4mexclusion›24ms   and  ›4mdistribution­list›24m)  and  their  leading
  109.        slashes may be omitted.
  110.  
  111.        The ›4msystem›24m ›4mname›24m is the name of the system being  sent  to,
  112.        and  is  checked  against  site  names in ›1mPath:›22m headers to
  113.        avoid sending an article back to a site that has seen  it.
  114.        The  ›4mexclusion›24ms  are also checked against the ›1mPath:›22m header
  115.        and articles are not sent to ›4msystem›24m ›4mname›24m if they have vis­
  116.        ited any of the ›4mexclusions›24m.
  117.  
  118.        The  special  ›4msystem›24m  ›4mname›24m  ›1mME›22m  stands for the name of the
  119.        machine  news  is   running   on,   as   determined   from
  120.        ›4m/usr/lib/news/whoami›24m.   (The ›1mME›22m line, or a line whose ›4msys­›24m
  121.        ›4mtem›24m ›4mname›24m is explicitly that of the machine news is running
  122.        on,  has a rather different meaning from that of the other
  123.        ›4msys›24m file lines: its ›4msubscription­list›24m subfield  identifies
  124.        the newsgroups that this site subscribes to (i.e. is will­
  125.        ing to receive), and its other fields  and  subfields  are
  126.        ignored.)
  127.  
  128.  
  129.  
  130.                            12 Sept 1990                         2
  131.  
  132.  
  133.  
  134.  
  135.  
  136. NEWS(5)                                                   NEWS(5)
  137.  
  138.  
  139.        ›4msubscriptions›24m  is a comma­separated list of ›4mnewsgroup›24m ›4mpat­›24m
  140.        ›4mterns›24m specifying the newsgroups to be transmitted  to  the
  141.        ›4msystem›24m; each newsgroup from the ›1mNewsgroups:›22m header of each
  142.        article is matched against the pattern list,  and  if  any
  143.        newsgroup  matches the pattern list, the article is trans­
  144.        mitted.  The rules for matching a newsgroup against a sin­
  145.        gle pattern are:
  146.  
  147.        o  ›4mword›24ms  in  a  newsgroup  or  a pattern are delimited by
  148.           periods;
  149.  
  150.        o  words of a pattern and a newsgroup match only  if  they
  151.           are  identical,  except  that the word ›1mall›22m in a pattern
  152.           matches any newsgroup word;
  153.  
  154.        o  a newsgroup is matched against a pattern word by  word,
  155.           and  all  words  must  match for the newsgroup to match
  156.           that pattern;
  157.  
  158.        o  if the pattern has fewer words than the newsgroup,  the
  159.           pattern  is  implicitly  extended to the same number of
  160.           words by appending ›1m.all›22m as many times as necessary;
  161.  
  162.        o  if the newsgroup has fewer words than the pattern,  the
  163.           newsgroup does not match the pattern;
  164.  
  165.        o  if  ›4mpattern›24m  matches  a  newsgroup, ›1m!›4m›22mpattern›24m ›4mmis›24mmatches
  166.           that newsgroup.
  167.  
  168.        A newsgroup matches a pattern list if,  and  only  if,  it
  169.        matches at least one of the patterns and:
  170.  
  171.        o  the newsgroup does not mismatch any of the patterns, or
  172.  
  173.        o  the longest matched pattern is longer than the  longest
  174.           mismatched  pattern  (length  is  measured in number of
  175.           words, with each explicit occurrence of ›1mall›22m counted  as
  176.           slightly  less  than one word, and does not include the
  177.           implicit extension of patterns with ›1m.all›22m).
  178.  
  179.        Note that order in the lists is not significant, and  that
  180.        ties  are  broken  in  favor of not matching.  An example:
  181.        ›1mcomp,comp.sys.sun,!comp.sys›22m matches all the  ›1mcomp›22m  groups,
  182.        ›4mexcept›24m the ›1mcomp.sys›22m groups ›4mbut›24m ›4mincluding›24m ›1mcomp.sys.sun›22m.
  183.  
  184.        The  distributions  in  the ›1mDistribution:›22m header are simi­
  185.        larly matched against the ›4mdistribution­list›24m.  If  no  ›4mdis­›24m
  186.        ›4mtributions›24m  are  supplied,  ›1mDistribution:›22m  will be matched
  187.        against the  ›4msubscriptions›24m  instead.   (The  ›1mDistribution:›22m
  188.        header is ignored when receiving news; it is only signifi­
  189.        cant when sending.)
  190.  
  191.        Note that some older  news  software  reportedly  attached
  192.        magical  significance  to  the distributions ``world'' and
  193.  
  194.  
  195.  
  196.                            12 Sept 1990                         3
  197.  
  198.  
  199.  
  200.  
  201.  
  202. NEWS(5)                                                   NEWS(5)
  203.  
  204.  
  205.        ``local''; C News treats  them  as  ordinary  distribution
  206.        names with no special properties (except that ``world'' is
  207.        the default distribution of an  article  if  none  appears
  208.        explicitly).   For  example,  a  ›4mdistributions›24m  list  like
  209.        ›1mall,!local›22m will ›4mnot›24m prevent local articles from being sent
  210.        unless they contain explicit ›1mDistribution:›22m ›1mlocal›22m lines.
  211.  
  212.        The  ›4mflags›24m are a set of letters describing how the article
  213.        should be transmitted.  Valid flags include  ›1mf›22m  (interpret
  214.        ›4mtransmission›24m ›4mcommand›24m as a file name and write the name and
  215.        size in bytes of each article on the end of it), ›1mF›22m (like ›1mf›22m
  216.        but  omit  the  size),  ›1mI›22m  (like  ›1mF›22m but write Message­ID:s
  217.        instead of filenames), ›1mn›22m (like ›1mF›22m but write  a  Message­ID:
  218.        after  each  filename),  ›1mL›4m›22mn›24m  (only send articles generated
  219.        within ›4mn›24m hops of here; 0 is the default value  for  ›4mn›24m),  ›1mm›22m
  220.        (transmit  only moderated groups), ›1mu›22m (transmit only unmod­
  221.        erated groups).  There are other obsolete ones.
  222.  
  223.        The ›4mtransmission›24m ›4mcommand›24m is executed by the shell with the
  224.        article  to  be  transmitted  as  the standard input.  The
  225.        default is `›1muux›22m ›1m-›22m ›1m-z›22m ›1m-r›22m ›4msysname›1m›24m!rnews›22m' for a command;  the
  226.        PATH searched includes ›1m/usr/lib/newsbin/relay›22m, so that the
  227.        commands described in ›4mnewsmail›24m(8) are available as  alter­
  228.        natives to ›4muux›24m.  If one of the ›4mflags›24m has caused this field
  229.        to   be   taken   as   a   filename,   the   default    is
  230.        ›1m/usr/spool/news/out.going/›4m›22msysname›1m›24m/togo›22m;  if  a filename is
  231.        given but it does not start with `/', it is assumed to  be
  232.        relative to the ›1m/usr/spool/news/out.going›22m directory.
  233.  
  234.        Some examples:
  235.  
  236.             ›1m#›22m ›1mline›22m ›1mindicating›22m ›1mwhat›22m ›1mwe›22m ›1mare›22m ›1mwilling›22m ›1mto›22m ›1mreceive;›22m ›1mnote›22m ›1mlocal›22m ›1mgroups›22m ›1mon›22m ›1mend›22m
  237.             ›1mME:comp,news,sci,rec,misc,soc,talk,to,can,ont,tor,ut›22m
  238.             ›1m#›22m ›1msample›22m ›1minsignificant›22m ›1mfeed›22m ›1mnot›22m ›1musing›22m ›1mbatching›22m
  239.             ›1mhuey:news.config,to.huey/all::uux›22m ›1m­›22m ›1m­r›22m ›1m­gd›22m ›1mhuey!rnews›22m
  240.             ›1m#›22m ›1msample›22m ›1mmajor›22m ›1mbatched›22m ›1mfeed,›22m ›1mincluding›22m ›1m(unnecessary)›22m ›1mexplicit›22m ›1mfile›22m ›1mname›22m
  241.             ›1mdewey:comp,news,sci,rec,misc,soc,talk,to.dewey,can,ont,tor,ut/all:f:dewey/togo›22m
  242.             ›1m#›22m ›1msample›22m ›1mlong­haul›22m ›1mfeed;›22m ›1mnote›22m ›1mno›22m ›1mlocal›22m ›1mgroups›22m
  243.             ›1mdonald:comp,news,sci,rec,misc,soc,talk,to.donald/all:f:›22m
  244.             ›1m#›22m ›1msample›22m ›1mlocal­postings­only›22m ›1mfeed›22m ›1mdirect›22m ›1mto›22m ›1mmajor›22m ›1msite›22m ›1m(gets›22m ›1mthem›22m ›1mout›22m ›1mfast)›22m
  245.             ›1mscrooge:comp,news,sci,rec,misc,soc,talk,to.scrooge/all:Lf:›22m
  246.             ›1m#›22m ›1msample›22m ›1mihave/sendme›22m ›1mlink›22m
  247.             ›1m#›22m ›1mSend›22m ›1mihave›22m ›1mtelling›22m ›1mlouie›22m ›1mwhat›22m ›1mwe›22m ›1mhave›22m ›1m­­›22m ›1mbatcher›22m ›1mturns›22m ›1mthe›22m ›1mbatch›22m ›1minto›22m ›1ma›22m
  248.             ›1m#›22m ›1mgiant›22m ›1mcontrol›22m ›1mmessage›22m ›1mand›22m ›1mposts›22m ›1mit›22m ›1mto›22m ›1m"to.louie".›22m  ›1m(#1)›22m
  249.             ›1mlouie:rec.music.synth/all,!sendme,!ihave:I:louie.ihave/togo›22m
  250.             ›1m#›22m ›1mSend›22m ›1msendme›22m ›1min›22m ›1mresponse›22m ›1mto›22m ›1mihave›22m ›1mfrom›22m ›1mlouie›22m ›1m­­›22m ›1magain,›22m ›1mturned›22m ›1mby›22m ›1mbatcher›22m
  251.             ›1m#›22m ›1minto›22m ›1mgiant›22m ›1mcontrol›22m ›1mmessage›22m ›1mposted›22m ›1mto›22m ›1m"to.louie".›22m  ›1m(#3)›22m
  252.             ›1mlouie­send­ids:to.louie/ihave:I:louie.sendme/togo›22m
  253.             ›1m#›22m ›1mTransmit›22m ›1msaid›22m ›1mgiant›22m ›1mcontrol›22m ›1mmessages›22m ›1mby›22m ›1mnormal›22m ›1mbatching.›22m  ›1m(#2,#4)›22m
  254.             ›1mlouie­ctl:to.louie/all,!sendme,!ihave:f:louie/togo›22m
  255.             ›1m#›22m ›1mSend›22m ›1marticles›22m ›1min›22m ›1mresponse›22m ›1mto›22m ›1msendme›22m ›1mmessages›22m ›1mfrom›22m ›1mlouie.›22m ›1m(#5)›22m
  256.             ›1mlouie­real:to.louie/sendme:f:louie/togo›22m
  257.             ›1m#›22m ›1mActually›22m ›1mthe›22m ›1mlast›22m ›1mtwo›22m ›1mcould›22m ›1mbe›22m ›1mcombined.›22m
  258.  
  259.  
  260.  
  261.  
  262.                            12 Sept 1990                         4
  263.  
  264.  
  265.  
  266.  
  267.  
  268. NEWS(5)                                                   NEWS(5)
  269.  
  270.  
  271.        (The  ``to.›4msysname›24m'' groups are normal newsgroups used for
  272.        testing individual news feeds.)
  273.  
  274.        Somewhere in the ›4msys›24m file, there must be a  line  for  the
  275.        host system.  This line has no ›4mflags›24m or ›4mcommands›24m.
  276.  
  277.        The  ›4mactive›24m  file contains one line per locally­valid news
  278.        group.  Each line consists of four blank­separated fields:
  279.        newsgroup  name,  highest  local  article number assigned,
  280.        lowest local article number in use (approximately), and  a
  281.        flag.  Both article­number fields are at least five digits
  282.        wide.  (Some older news software may expect  exactly  five
  283.        digits.)  The current flag values are ›1my›22m (a normal unmoder­
  284.        ated group), ›1mn›22m (like ›1my›22m but local postings  disallowed),  ›1mm›22m
  285.        (a  normal  moderated group), ›1mx›22m (a locally­disabled group,
  286.        no articles will be filed here), and ›1m=›22m  (followed  by  the
  287.        real  group  under  which  to file articles in this group;
  288.        articles are  treated  exactly  as  if  their  ›1mNewsgroups:›22m
  289.        header  specified  the  real group instead of the original
  290.        one; highest and lowest fields are ignored).  An example:
  291.  
  292.             ›1mcomp.org.usrgroup›22m ›1m0000000006›22m ›1m00004›22m ›1my›22m
  293.             ›1mtalk.bizarre›22m ›1m0000296123›22m ›1m292136›22m ›1mn›22m
  294.             ›1mcomp.sys.sun›22m ›1m0000000175›22m ›1m00173›22m ›1mm›22m
  295.             ›1mlist.sun­spots›22m ›1m0000000076›22m ›1m00076›22m ›1m=comp.sys.sun›22m
  296.             ›1mcomp.os.vms›22m ›1m0000000000›22m ›1m00000›22m ›1mx›22m
  297.  
  298.        The ›4mhistory›24m  file  contains  one  line  for  each  article
  299.        received.   Each  line  consists  of  three  tab­separated
  300.        fields: a ›4mMessage­ID:›24m, the arrival time as  seconds  since
  301.        midnight, Jan 1, 1970 and the ›1mExpires:›22m value (a dash indi­
  302.        cates there was none) separated by a tilde, and  the  list
  303.        of  links to this article.  If an article has been expired
  304.        or cancelled without being seen first, the list  of  links
  305.        and the tab before it are omitted.  An example:
  306.  
  307.             ›1m<3451@hcr.UUCP>›22m ›1m581905588~­›22m     ›1mcomp.text/1317›22m ›1mcomp.sources.wanted/4200›22m
  308.             ›1m<9383@alice.UUCP>›22m       ›1m611934511~­›22m
  309.  
  310.  
  311. ›1mSEE›22m ›1mALSO›22m
  312.        ›4mchecknews›24m(1),  ›4mcompress›24m(1),  ›4minews›24m(1),  ›4mpostnews›24m(1), ›4mread­›24m
  313.        ›4mnews›24m(1), ›4mrn›24m(1),  ›4mvnews›24m(1),  ›4mgetdate›24m(3),  ›4mexpire›24m(8),  ›4mnews­›24m
  314.        ›4mbatch›24m(8), ›4mnewsmail›24m(8), ›4mrelaynews›24m(8), ›4mrecnews›24m(8), ›4mrnews›24m(8),
  315.        ›4msendnews›24m(8), ›4muurec›24m(8), ›4mnewsinvaders›24m(9.1)
  316.        ARPA Internet RFCs 1036 and 850
  317.  
  318. ›1mBUGS›22m
  319.        B format articles must not start with  ›1mA›22m,  to  distinguish
  320.        them  from ›1mA›22m format, which is only a problem if moderators
  321.        put ›1mApproved:›22m first.
  322.        ›1mControl:›22m and ›1mNewsgroups:›22m are not required to be the  first
  323.        headers, if present.
  324.        People  insist  on making their whacko local encapsulation
  325.  
  326.  
  327.  
  328.                            12 Sept 1990                         5
  329.  
  330.  
  331.  
  332.  
  333.  
  334. NEWS(5)                                                   NEWS(5)
  335.  
  336.  
  337.        schemes (›1mcunbatch›22m, etc.)  ›4mrnews›24m's problem.
  338.        One could argue that RFC 822 is less than  an  ideal  base
  339.        for article format.
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.                            12 Sept 1990                         6
  395.  
  396.  
  397.